/*
 * @Author: your name
 * @Date: 2022-01-13 18:05:50
 * @LastEditTime: 2022-03-17 17:31:00
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \web\src\assets\common\exit.js
 */
import { Modal } from 'antd';
import { ExclamationCircleOutlined } from '@ant-design/icons';

const { confirm } = Modal;

const tips = (txt, ) => {
  confirm({
    title: '确定要退出吗?',
    icon: <ExclamationCircleOutlined />,
    content: '',
    onOk() {
      console.log('确定');
    },
    onCancel() {
      console.log('取消');
    },
  });
}
export default tips;